package com.kaikeba.t31.service;

import com.kaikeba.t31.admin.po.AdminRoleUser;
import com.kaikeba.t31.core.service.ICrudService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yumingzhi
 * @since 2021-11-15
 */
public interface AdminRoleUserService extends ICrudService<AdminRoleUser> {

    void deleteByRole(Long id);

    boolean saveBatch(List<AdminRoleUser> adminRoleUsers);

    /**
     * 根据用户id查询角色id
     *
     * @param userId
     * @return
     */
    List<AdminRoleUser> getRoleByUserId(Long userId);
}
